/**
 * Created by sunshine on 16-8-17.
 */
$('#nav').affix({
    offset: {
        top: $('header').height()
    }
});

$('#sidebar').affix({
    offset: {
        top: 500
    }
});